package com.bzs.batch.reconcile.controller;


import com.bzs.batch.reconcile.entity.SysTransactionflow;
import com.bzs.batch.reconcile.service.ISysTransactionflowService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author baozs
 * @since 2021-12-21
 */
@AllArgsConstructor
@RestController
@RequestMapping("/sys-transactionflow")
public class SysTransactionflowController {

    private final ISysTransactionflowService iSysTransactionflowService;

    @RequestMapping("/getAll")
    public List<SysTransactionflow> getAll(){
        return iSysTransactionflowService.list();
    }

    @RequestMapping("/DataToFile")
    public void DataToFile(){
         iSysTransactionflowService.dataToFile();
    };
}
